home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / src / dmake / save / subs.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-11-23  |  356 b   |  33 lines

  1.  
  2. /*
  3.  *  Misc. support routines
  4.  */
  5.  
  6. #include "defs.h"
  7. #ifdef AMIGA
  8. #include <exec/libraries.h>
  9.  
  10. Prototype int Running2_04(void);
  11. Prototype int align(int);
  12.  
  13. extern struct Library *SysBase;
  14.  
  15. Running2_04()
  16. {
  17.     if (SysBase->lib_Version >= 37)
  18.     return(1);
  19.     return(0);
  20. }
  21.  
  22. #endif
  23.  
  24. int
  25. align(n)
  26. int n;
  27. {
  28.     if (n & 3)
  29.     return(4 - (n & 3));
  30.     return(0);
  31. }
  32.  
  33.